import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { RoleQuery, RolePageResult, RoleForm } from './types';

/**
 * 修改
 *
 * @param data
 */
export function updateScreen(data: any) {
  return request({
    url: '/api/appscreen/update',
    method: 'post',
    data
  });
}

/**
 * 添加
 *
 * @param data
 */
export function addScreen(data: any) {
  return request({
    url: '/api/appscreen/add',
    method: 'post',
    data
  });
}


/**
 * 获取List
 *
 * @param data
 */
export function getScreenList(data: any) {
  return request({
    url: '/api/appscreen/list',
    method: 'post',
    data
  });
}

/**
 * 删除List
 *
 * @param data
 */
export function deleteListScreen(data: any) {
  return request({
    url: '/api/appscreen/batchdelete',
    method: 'post',
    data
  });
}

/**
 * 查询app详情
 *
 * @param data
 */
export function getScreenDetail(data: any) {
  return request({
    url: '/api/appscreen/findById',
    method: 'post',
    data
  });
}



